package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ItemOrder;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import cc.yugu.yhdw.webserver.entity.Strategy;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;
/**
 * 商品订单信息
 * 
 * @Date:Created in 2018/6/30 17:01
 * @Author:
 * @Modified By: zjn 2018/6/30 17:01
 */ 
public interface ItemOrderMapper extends MasterMapper {
    /**
    * 根据主键查询表hdw_item_order
    * 
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ItemOrder
    * @Author By: zjn 2018/6/30  17:03
    */ 
    public ItemOrder find(String id);
    /**
    * 查询，返回行数
    * 
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/30  17:03
    */ 
    public int findPageCount(ItemOrder search);
    /**
    * 分页查询，将查询结果按照主键降序排列
    * 
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ItemOrder>
    * @Author By: zjn 2018/6/30  17:03
    */ 
    public List<ItemOrder> findPageResult(ItemOrder search);
    /**
    * 根据主键和订单状态更新
    * 
    * @Param: [id, toStatus, formStatus, expressName]
    * @Return: int
    * @Author By: zjn 2018/6/30  17:03
    */ 
    public int updateOrderStatus(@Param("id")String id,@Param("toStatus") Integer toStatus, @Param("formStatus")Integer formStatus, @Param("expressName")String expressName);
    /**
    * 查询
    * 
    * @Param: [orderStatus, createTime]
    * @Return: java.util.Map<java.lang.String,java.lang.Object>
    * @Author By: zjn 2018/6/30  17:03
    */ 
    public Map<String,Object> findToDayItemPrice(@Param("orderStatus")Integer orderStatus,@Param("createTime")Date createTime);
}
